﻿using System.Collections;

namespace WorldIndex.Modules.Countries
{
    public class Countries : IEnumerable 
    {
        private Country[] _countries;
        
        public Countries(Country[] cArray)
        {
            _countries = new Country[cArray.Length];

            for(int i = 0; i < cArray.Length; i++)
            {
                _countries[i] = cArray[i];
            }
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return new CountriesEnum(_countries);
        }
    }
}
